#!/bin/sh

logfile=/etc/zabbix/scripts/tcp_status.log

ss state all | awk '{++state[$1]}END{for (s in state) {print s,state[s]}}' > $logfile
